package com.globallogic.model.transferobject;

import java.util.Date;

import com.globallogic.model.Activity;
import com.globallogic.model.entity.DailyPlan;

public class DailyPlanTo {
	
	public Date date;
	public Activity activity;
	public int estimateDuration;
	public int actualDuration;
	public String comments;
    public String username;
	public int id;
	
	public void setDefValues(){
		activity = Activity.CODING;
		estimateDuration = 1;
		actualDuration = 0;
		comments = "type something here";
	}
	
	public DailyPlan getEntity() {
		
		DailyPlan entity = new DailyPlan();
		
		entity.setActivity(activity);
		entity.setActualDuration(actualDuration);
		entity.setEstimateDuration(estimateDuration);
		entity.setComments(comments);
		entity.setDate(date);
		entity.setId(id);
		entity.setUsername(username);
		
		return entity;
	}
	
}
